package com.xhorse.lockplatform.model;

import com.xhorse.lockplatform.comm.model.BaseId;

import java.util.Date;

public class XhChip extends BaseId{

	private String vvdi_id;

	private Integer key_amount;

	private Integer country_id;

	private String make_id_in_keytool;

	private Integer type;

	private Integer vehicle_make_id;

	private Integer letter_id;

	private Integer model_id;

	private Integer notice_id;

	private String make_name;

	private String model;
	
	private Integer sort;

	private String model_info;

	private String notice;

	private String model_en;

	private String model_info_en;

	private String notice_en;

	private String chip_type_number;

	private Integer language_id;

	private String version;

	private Date create_at;

	private Date update_at;

	public String getVvdi_id() {
		return vvdi_id;
	}

	public void setVvdi_id(String vvdi_id) {
		this.vvdi_id = vvdi_id;
	}

	public Integer getKey_amount() {
		return key_amount;
	}

	public void setKey_amount(Integer key_amount) {
		this.key_amount = key_amount;
	}

	public Integer getCountry_id() {
		return country_id;
	}

	public void setCountry_id(Integer country_id) {
		this.country_id = country_id;
	}

	public String getMake_id_in_keytool() {
		return make_id_in_keytool;
	}

	public void setMake_id_in_keytool(String make_id_in_keytool) {
		this.make_id_in_keytool = make_id_in_keytool;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getVehicle_make_id() {
		return vehicle_make_id;
	}

	public void setVehicle_make_id(Integer vehicle_make_id) {
		this.vehicle_make_id = vehicle_make_id;
	}

	public Integer getLetter_id() {
		return letter_id;
	}

	public void setLetter_id(Integer letter_id) {
		this.letter_id = letter_id;
	}

	public Integer getModel_id() {
		return model_id;
	}

	public void setModel_id(Integer model_id) {
		this.model_id = model_id;
	}

	public Integer getNotice_id() {
		return notice_id;
	}

	public void setNotice_id(Integer notice_id) {
		this.notice_id = notice_id;
	}

	public String getMake_name() {
		return make_name;
	}

	public void setMake_name(String make_name) {
		this.make_name = make_name;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getModel_info() {
		return model_info;
	}

	public void setModel_info(String model_info) {
		this.model_info = model_info;
	}

	public String getNotice() {
		return notice;
	}

	public void setNotice(String notice) {
		this.notice = notice;
	}

	public String getModel_en() {
		return model_en;
	}

	public void setModel_en(String model_en) {
		this.model_en = model_en;
	}

	public String getModel_info_en() {
		return model_info_en;
	}

	public void setModel_info_en(String model_info_en) {
		this.model_info_en = model_info_en;
	}

	public String getNotice_en() {
		return notice_en;
	}

	public void setNotice_en(String notice_en) {
		this.notice_en = notice_en;
	}

	public String getChip_type_number() {
		return chip_type_number;
	}

	public void setChip_type_number(String chip_type_number) {
		this.chip_type_number = chip_type_number;
	}

	public Integer getLanguage_id() {
		return language_id;
	}

	public void setLanguage_id(Integer language_id) {
		this.language_id = language_id;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public Date getCreate_at() {
		return create_at;
	}

	public void setCreate_at(Date create_at) {
		this.create_at = create_at;
	}

	public Date getUpdate_at() {
		return update_at;
	}

	public void setUpdate_at(Date update_at) {
		this.update_at = update_at;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj == null) {
			return false;
		}
		if (this == obj) {
			return true;
		}
		if (obj instanceof XhChip) {
			XhChip xhChip = (XhChip) obj;
			if (xhChip.vvdi_id.equals(this.vvdi_id)
					&& xhChip.key_amount == this.key_amount
					&& xhChip.country_id == this.country_id
					&& xhChip.make_id_in_keytool.equals(this.make_id_in_keytool)
					&& xhChip.type == this.type
					&& xhChip.vehicle_make_id == this.vehicle_make_id
					&& xhChip.sort == this.sort
					&& xhChip.make_name.equals(this.make_name)
					&& xhChip.notice_id==this.notice_id
					&& xhChip.chip_type_number.equals(this.chip_type_number)
					&& xhChip.model.equals(this.model)
					&& xhChip.model_info.equals(this.model_info)
					&& (xhChip.notice==this.notice||xhChip.notice.equals(this.notice))
					&& (xhChip.model_en== this.model_en||xhChip.model_en.equals(this.model_en))
					&& xhChip.model_info_en.equals(this.model_info_en)
					&& (xhChip.notice_en==this.notice_en||xhChip.notice_en.equals(this.notice_en))) {
				return true;
			}
		}
		return false;
	}

	@Override
	public String toString() {
		return "XhChip [id=" + id + ", vvdi_id=" + vvdi_id + ", key_amount="
				+ key_amount + ", country_id=" + country_id
				+ ", make_id_in_keytool=" + make_id_in_keytool + ", type="
				+ type + ", vehicle_make_id=" + vehicle_make_id
				+ ", letter_id=" + letter_id + ", model_id=" + model_id
				+ ", notice_id=" + notice_id + ", make_name=" + make_name
				+ ", model=" + model + ", sort=" + sort + ", model_info="
				+ model_info + ", notice=" + notice + ", model_en=" + model_en
				+ ", model_info_en=" + model_info_en + ", notice_en="
				+ notice_en + ", chip_type_number=" + chip_type_number
				+ ", language_id=" + language_id + ", version=" + version
				+ ", create_at=" + create_at + ", update_at=" + update_at + "]";
	}

}
